﻿using System.Text;

namespace HamcoWcs.Models.DeviceMsgs.BconMsgs.BconSendTel
{
    public class BconTel_GC : BconBaseTel
    {
        public string Control_DeviceID { get; set; }
        public string Control_Type { get; set; }
        public override string Encode()
        {
            StringBuilder transText = new StringBuilder();
            transText.Append("<<");
            transText.Append(Tel_Type);
            transText.Append("015");
            transText.Append(Control_DeviceID.PadLeft(4, '0'));
            transText.Append(Control_Type.PadLeft(2, '0'));
            transText.Append(">>");
            return transText.ToString();
        }
    }
}
